home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Calc / MicroCalc.jar / Intro$ForwardThread.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-09-07  |  1.1 KB  |  36 lines

  1. public class Intro$ForwardThread extends Thread {
  2.    private final Intro this$0;
  3.    boolean suspendFlag;
  4.  
  5.    public Intro$ForwardThread(Intro var1) {
  6.       this.this$0 = var1;
  7.    }
  8.  
  9.    public synchronized void myResume() {
  10.       this.suspendFlag = false;
  11.       this.notify();
  12.    }
  13.  
  14.    public void mySuspend() {
  15.       this.suspendFlag = true;
  16.    }
  17.  
  18.    public void run() {
  19.       if (!this.this$0.endLoop) {
  20.          do {
  21.             if (System.currentTimeMillis() - this.this$0.timer > 2000L) {
  22.                this.this$0.endLoop = true;
  23.                this.this$0.midlet.display.setCurrent(Intro.access$0(this.this$0));
  24.             }
  25.  
  26.             try {
  27.                Thread.sleep(100L);
  28.             } catch (Exception var2) {
  29.                ((Throwable)var2).printStackTrace();
  30.             }
  31.          } while(!this.this$0.endLoop);
  32.  
  33.       }
  34.    }
  35. }
  36.